<?php
FLEA::loadClass('TMIS_TableDataGateway');
class Model_Jichu_Gongyi extends TMIS_TableDataGateway {
    var $tableName     = "jichu_gongyi";
    var $primaryKey    = "id";
    var $primaryName   = "gongyiName";
    var $needCreateLog = true;// 需要打日志则加此参数
    var $moduleName    = '后整理工艺管理';// 模块名称


    //所有库位
    function getOptions(){
        $rows = $this->findAll();
        foreach($rows as & $v){
            $arr[]=array('value'=>$v[$this->primaryKey],'text'=>$v[$this->primaryName]);
        }
        return $arr;
    }
}
?>